<!--
 * @Author: 清羽
 * @Date: 2022-08-18 16:16:52
 * @LastEditTime: 2022-08-18 16:28:37
 * @LastEditors: you name
 * @Description: 审核状态选择
-->
<template>
  <div style="display:inline-block; margin-right: 20px;">
    <el-select v-model="selectedCheck"
               filterable
               placeholder="审核状态选择">
      <el-option v-for="item in check"
                 :key="item.value"
                 :label="item.label"
                 :value="item.value" />
    </el-select>
  </div>
</template>

<script>
export default {
  props: {
    checkValue: {
      type: String,
      default: ''
    }
  },
  data () {
    return {
      check: [
        {
          value: 1,
          label: '已审核'
        }, {
          value: 0,
          label: '未审核'
        }
      ]
    }
  },
  computed: {
    // productName: {
    //   get () {
    //     return this.value
    //   },
    //   set (val) {
    //     this.$emit('input', val)
    //   }
    // },
    selectedCheck: {
      get () {
        return this.checkValue
      },
      set (val) {
        this.$emit('input', val)
      }
    }
  }
}
</script>
